<?php
/*
 * Created on Sep 11, 2010
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
 
include('system/library/spyc/spyc.php'); 

class Config { 
	static $_data = array();
	
	static function get($var) {
		if (self::$_data == null) {
			self::$_data = Spyc::YAMLLoad('system/configuration/config.yml');
		}
		if (count(self::$_data) > 0) {
			foreach (self::$_data as $key => $value) {
				if ($key == $var) {
					return $value;
				}
			}
		}
		return null;
	}
}


?>
